<%--
  Created by IntelliJ IDEA.
  User: 小可爱
  Date: 2020/9/27
  Time: 15:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script  src="js/jquery-3.4.1.min.js"></script>
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <h2>删除用户</h2>
        <form method="post" class="delForm">
            <input type="hidden" name="_method" value="DELETE" />
            <input type="button" class="delBtn" value="删除"/>
        </form>
        <script>
            $(".delForm").click(function() {
                $.ajax({
                    type: "POST",
                    url: "mymember/1011",
                    dataType: "json",
                    data: "_method=DELETE",
                    success: function(result){
                        console.log(result);
                    }
                })
            });
        </script>
    </body>
</html>
